<template>
	<view>
		<view class="flex align-center px-2" @click="open">
			<image :src="item.cover" 
			class="rounded"
			style="width: 150rpx;height: 150rpx;"
			></image>
			<view class="flex flex-column px-2">
				<text class="font-md text-dark">{{item.title}}</text>
				<text class="font text-secondary">{{item.desc}}</text>
				<view class="flex font text-secondary">
					<text class="mr-1">动态: {{item.news_count}}</text>
					<text>今日: {{item.today_count}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		props:['item','index'],
		methods:{
			open() {
				uni.navigateTo({
					url:'../../pages/topicDetail/topicDetail?detail=' + JSON.stringify(this.item)
				})
			}
		}
	}
</script>

<style>
</style>
